<?php
namespace app\api\controller;

use think\Request;
use think\Db;

class User extends Base {
  public function login(Request $request) 
  {

    $param = $request->param();
    $user = Db::table('user')->where("username", 'admin')->column("username");

    dump($param);

    $result = [
      'code' => 200,
      'msg' => "登录成功！"
    ];

    // return json_encode($result);
  }
}
?>